const goods = [{
    name:'iphone',
    price:5000,
    inventory:5,
    id:1
},{
    name:'华为n123',
    price:17300,
    inventory:2,
    id:2
},{
    name:'car',
    price:100000,
    inventory:3,
    id:3
},{
    name:'apple',
    price:50,
    inventory:8,
    id:4
}
]

export default {
    // api 交给action调用
    // action里的 同步修改状态的action
    getProducts:(cd) => setTimeout(cd(goods),1000)
}